package com.szc.fs.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

//https://blog.csdn.net/lllhhhv/article/details/123129228?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-1-123129228-blog-114312697.pc_relevant_vip_default&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-1-123129228-blog-114312697.pc_relevant_vip_default&utm_relevant_index=1
@Configuration
public class RestTempConfig {

    @Autowired
    private RestTemplateBuilder builder;

    @Bean
    public RestTemplate     restTemplate(){
        return  builder.build();
    }

}
